<script>
	function feti(){
	var obj = document.getElementById('fetion');
	var fet = document.getElementById('fet');
	var s = obj.value;
	if(s.length != 9){
		fet.style.display="block";
	}else{
		fet.style.display="none";
	}
}
</script>
<div class="pageContent">
	<form method="post" action="__URL__/do_edit/navTabId/team/callbackType/closeCurrent" 
		class="pageForm required-validate" 
		onsubmit="return iframeCallback(this, dialogAjaxDone)">
		<div class="pageFormContent" layoutH="55">
			<input type="hidden" name="tid" value="{$list.Id}">
				<div class="unit">
					<label>团队名称：</label>
					<input type="text" name="Name"  class="required" value="{$list.Name}"/>
				</div>
				<div class="unit">
					<label>队长：</label>
					<select name="Captain">
						<volist name="tmarr" id="tvo">
						<if condition="$tvo.sta eq 1">
						<option value="{$tvo.UserId}" selected="selected">{$tvo.TrueName}</option>
						<else />
						<option value="{$tvo.UserId}">{$tvo.TrueName}</option>
						</if>
						</volist>
					</select>
				</div>
				<div class="unit">
					
					<label>团队宣言：:</label>
					<textarea cols="50" rows="4" name="Declaration">{$list.Declaration}</textarea>
				</div>
				<div class="unit">
					<label>团队飞信：</label>
					<input type="text" name="Fetion"  class="required" value="{$list.Fetion}" id="fetion" onblur="feti()"/>
					<span class="error" style="display:none" id="fet">飞信号不正确</span>
				</div>
				<div class="unit">
					<label>所属学校:</label>
					<select name="SchoolId">
						<volist name="harr" id="hvo">
						<if condition="$hvo.sta neq 1">
						<option value="{$hvo.Id}">{$hvo.SchoolName}</option>
						<else />
						<option value="{$hvo.Id}" selected="selected">{$hvo.SchoolName}</option>
						</if>
						</volist>
					</select>
				</div>
				<div class="unit">
					<label>比赛阶段：</label>
					<select name="Status">
						<option value="1">初赛</option>
						<option value="2">复赛</option>
						<option value="3">分区赛决赛</option>
						<option value="4">决赛</option>
					</select>
					
				</div>				
			</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit" id="ansubmit">确定</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
</div>

